﻿@model GameSchoolApplication.Models.Level

@{
    ViewBag.Title = "GameLevelIndex";
    Layout = "~/Views/Shared/_StudentLayout.cshtml";
}
@{var title = Model.Title; <h2>@title</h2> }

@section More {
<section id="More">
    <ul>
        <li><a href="#" id="showdes">Upplýsingar um leik</a></li>
        <li><a href="#" id="showlvl">Borð</a></li>
        <li><a href="#" id="showpoint">Stig Leiks</a></li>
        <li>@Html.ActionLink("Svindlarahornið", "#", "#")</li>
    </ul>
</section>
        }

<div class="tabbed" id="Student">
    <ul>
        <li class="tabs"><a href="#levelassignments">Verkefni</a></li>
        <li class="tabs"><a href="#leveltests">Próf</a></li>
        <li class="tabs"><a href="#levelvideos">Myndbönd</a></li>
    </ul>

<div>
    <div class="levelassignments">
        <ul>
            @foreach (var assignment in Model.Assignments)
            {
                <li>@Html.ActionLink(@assignment.Title, "HandIn", "Assignment", new { assignmentId = assignment.AssignmentId }, new { })</li>
            }
        </ul>
    </div>
    <div>
        <div class="leveltests">
            <h3>Próf</h3>
            <ul>
                @foreach (var test in Model.Tests)
                {
                    <li>@Html.ActionLink(@test.TestName, "HandIn", "Test", new { testId = test.TestId }, new { })</li>
                }
            </ul>
        </div>
        <div class="levelvideos">
            <h3>Myndbönd</h3>
            <ul>
                @foreach (var video in Model.Videos)
                {
                    <li>@Html.ActionLink(@video.Title, "Watch", "Video", new { id = video.VideoId }, new { })</li>
                }
            </ul>
        </div>
    </div>
</div>





    
